import request from '@/utils/request'

function login(data) {
  return request({
    url:'/login',
    method:'post',
    data
  })
}


function logout(data) {
  return request({
    url:'/logout',
    method:'get',
    params:data
  })
}

function register(data) {
  return request({
    url:'/register',
    method:'post',
    data
  })
}

export default { login, logout, register }